package com.linkage.seapeak.activity.message;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.widget.TextView;

import com.google.gson.JsonObject;
import com.linkage.jz.bankruptcy.BankruptcyApp;
import com.linkage.jz.bankruptcy.R;
import com.linkage.jz.bankruptcy.net.BaseSubscriber;
import com.linkage.jz.bankruptcy.net.Network;
import com.linkage.seapeak.adapter.CrediterAdapter;
import com.linkage.seapeak.base.BaseWhiteActivity;
import com.linkage.seapeak.pojo.CrediterUser;
import com.seapeak.recyclebundle.AYSwipeRecyclerView;

import java.util.ArrayList;
import java.util.List;

import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * 群发消息的成员查看
 */
public class MessageMemberActivity extends BaseWhiteActivity {

    List<CrediterUser> userList;
    AYSwipeRecyclerView recyclerView;
    CrediterAdapter adapter;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_message_member, "消息成员");
        init();
    }

    private void init() {
        userList = (List<CrediterUser>) getIntent().getSerializableExtra("userList");

        recyclerView = findViewById(R.id.member_list);
        recyclerView.setMode(AYSwipeRecyclerView.SwipeType.DISABLE);
        adapter = new CrediterAdapter(MessageMemberActivity.this, userList, false);
        recyclerView.setAdapter(adapter);
    }

}
